  <table id="LAY-saleusers-manage" lay-filter="LAY-saleusers-manage"></table>
  <script type="text/html" id="saleMemberTpl">
    {{# var member=JSON.parse(d.member) }}
    <img style="display:inline-block;width:30px;height:30px" src= {{ member.avatar }} >
    {{ member.nickname }}
  </script>
  <script type="text/html" id="saleMemberMobileTpl">
    {{# var member=JSON.parse(d.member) }}
    {{ member.mobile }}
  </script>
  <script type="text/html" id="createtimeTpl"> 
    {{# var date = new Date(d.createtime * 1000);
      var dt = date.getFullYear() + '-';
      dt += (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
      dt += (Array(2).join(0) + date.getDate()).slice(-2) + ' ';
      dt += (Array(2).join(0) + date.getHours()).slice(-2) + ':';
      dt += (Array(2).join(0) + date.getMinutes()).slice(-2) + ':';
      dt += (Array(2).join(0) + date.getSeconds()).slice(-2); }}
    {{ dt }}
  </script> 
  <script type="text/html" id="table-sale-users-oper">
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="itemdata"><i class="layui-icon layui-icon-tips"></i>查看</a>
  </script>
  <script>
  layui.use('saleusers', layui.factory('saleusers')).use(['admin', 'saleusers', 'table', 'upload'], function(){
    var $ = layui.$
    ,admin = layui.admin
    ,view = layui.view
    ,table = layui.table
    ,form = layui.form
    ,upload = layui.upload;
  
  });
  </script>